﻿<%@ Control Language="C#" EnableViewState="false" AutoEventWireup="true" CodeBehind="ucCartolaMayor.ascx.cs" Inherits="Com.Binaria.SISCOB.Web.UI.ucCartolaMayor" %>
<div id="divMaestro">

<asp:Panel runat="server" ID="pnlFind" Visible="false" CssClass="tabbed_box" >
<fieldset>
    <legend>Filtrar Informaci&oacute;n</legend>
    <div class="tabbed_area">
        <ul class="tabs"> 
            <li><a href="#" title="CartolaMayor" class="tab active">CartolaMayor</a></li>
        </ul>

        <div class="tabContent" id="CartolaMayor">    
        <table>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblCuentaCorriente" AssociatedControlID="ctlCuentaCorriente" Text="CuentaCorriente" /></td>
                <td>&nbsp;<asp:DropDownList runat="server" ID="ctlCuentaCorriente" Width="190px" DataTextField="Text" DataValueField="Id" /></td>
            </tr>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblFchEmision" AssociatedControlID="ctlFchEmision" Text="FchEmision" /></td>
                <td>&nbsp;<asp:TextBox runat="server" ID="ctlFchEmision" Width="70px" MaxLength="10" />&nbsp;<img id="imgFchEmision" src="../../Assets/images/date.png" class="date-pick" /></td>
            </tr>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblFchDesde" AssociatedControlID="ctlFchDesde" Text="FchDesde" /></td>
                <td>&nbsp;<asp:TextBox runat="server" ID="ctlFchDesde" Width="70px" MaxLength="10" />&nbsp;<img id="imgFchDesde" src="../../Assets/images/date.png" class="date-pick" /></td>
            </tr>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblFchHasta" AssociatedControlID="ctlFchHasta" Text="FchHasta" /></td>
                <td>&nbsp;<asp:TextBox runat="server" ID="ctlFchHasta" Width="70px" MaxLength="10" />&nbsp;<img id="imgFchHasta" src="../../Assets/images/date.png" class="date-pick" /></td>
            </tr>
        </table>
        </div>
    </div>
</fieldset>
<div id="divNew">
	<%--<a href="<%= VirtualPathUtility.ToAbsolute("~/Paginas/Mantto/Default.aspx") %>?View=CartolaMayor&Action=3&TB_iframe=true" class="btn btnadd jqBox" title="Agregar informaci&oacute;n ..." >Nuevo</a>--%>
</div>
<div id="divAction">
    <asp:LinkButton ID="btnBuscar" runat="server" ToolTip="Buscar informaci&oacute;n ..." CssClass="btn btnfind">Buscar</asp:LinkButton>
</div>
</asp:Panel>


<asp:Panel runat="server" ID="pnlEdit" Visible="false" CssClass="tabbed_box">
<fieldset>
    <div class="tabbed_area">
        <ul class="tabs">
            <li><a href="#" title="CartolaMayor" class="tab active">CartolaMayor</a></li>        
            <li><a href="#" title="RegistroContable" class="tab">RegistroContable</a></li>
        </ul>

        <div class="tabContent tabContentModal" id="CartolaMayor">
        <table>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblCuentaCorrienteE" AssociatedControlID="ctlCuentaCorrienteE" Text="CuentaCorriente" /></td>
                <td>
                    &nbsp;
                    <asp:DropDownList runat="server" ID="ctlCuentaCorrienteE" Width="190px" DataTextField="Text" DataValueField="Id"  Enabled="false"  />
                </td>
            </tr>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblFchEmisionTextE" AssociatedControlID="ctlFchEmisionTextE" Text="FchEmision" /></td>
                <td>
                    &nbsp;
                    <asp:TextBox runat="server" ID="ctlFchEmisionTextE" 
                                                Width="70px" 
                                                MaxLength="10"  Enabled="false" />
                    &nbsp;
                    <%--<img id="imgFchEmisionE" src="/Assets/images/date.png" class="date-pick" />--%>
                </td>
            </tr>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblFchDesdeTextE" AssociatedControlID="ctlFchDesdeTextE" Text="FchDesde" /></td>
                <td>
                    &nbsp;
                    <asp:TextBox runat="server" ID="ctlFchDesdeTextE" 
                                                Width="70px" 
                                                MaxLength="10"  Enabled="false" />
                    &nbsp;
                    <%--<img id="imgFchDesdeE" src="/Assets/images/date.png" class="date-pick" />--%>
                </td>
            </tr>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblFchHastaTextE" AssociatedControlID="ctlFchHastaTextE" Text="FchHasta" /></td>
                <td>
                    &nbsp;
                    <asp:TextBox runat="server" ID="ctlFchHastaTextE" 
                                                Width="70px" 
                                                MaxLength="10"  Enabled="false"  />
                    &nbsp;
                    <%--<img id="imgFchHastaE" src="/Assets/images/date.png" class="date-pick" />--%>
                </td>
            </tr>
        </table>
        </div>

        <div class="tabContent tabContentModal" id="RegistroContable">
        <asp:GridView ID="grdRegistroContable" 
                    runat="server" 
                    Width="90%"
                    AutoGenerateColumns="False" 
                    ShowFooter="True"
                    DataKeyNames="Id" 
                    onrowdeleting="grdRegistroContable_RowDeleting" 
                    onrowdatabound="grdRegistroContable_RowDataBound"
                    onrowcommand="grdRegistroContable_RowCommand"
                    CssClass="tabla">
            <Columns>
                <asp:TemplateField HeaderText="#" >
                    <ItemTemplate>
                        <%# Container.DataItemIndex + 1 %>
                    </ItemTemplate>
                </asp:TemplateField>

                <%--<asp:TemplateField HeaderText="IdDocumentoTransaccion" >
                    <ItemStyle />

                    <ItemTemplate>

                        <asp:TextBox ID="ctlIdDocumentoTransaccionKyAc18RegistroContable" 
                                     runat="server" 
                                     Text='<%# Bind("IdDocumentoTransaccion") %>' 
                                     Width="45px" 
                                     MaxLength="10" />

                    </ItemTemplate>
                    <FooterTemplate>

                        <asp:TextBox ID="ctlIdDocumentoTransaccionKyAc18RegistroContable" 
                                     runat="server" 
                                     Text='<%# Bind("IdDocumentoTransaccion") %>' 
                                     Width="45px" 
                                     MaxLength="10" />

                    </FooterTemplate>
                </asp:TemplateField>--%>

                <asp:TemplateField HeaderText="FchRegistro" >
                    <ItemStyle />

                    <ItemTemplate>

                        <asp:TextBox ID="ctlFchRegistroTextKyAc18RegistroContable" 
                                     runat="server" 
                                     Text='<%# Bind("FchRegistroText") %>' 
                                     Width="70px" 
                                     MaxLength="10" Enabled="false" />
                        &nbsp;
                        <%--<img id="imgFchRegistroTextKyAc18RegistroContable" src="/Assets/images/date.png" class="date-pick" />--%>

                    </ItemTemplate>
<%--                    <FooterTemplate>

                        <asp:TextBox ID="ctlFchRegistroTextKyAc18RegistroContable" 
                                     runat="server" 
                                     Text='<%# Bind("FchRegistroText") %>' 
                                     Width="70px" 
                                     MaxLength="10" />
                        &nbsp;
                        <img id="imgFchRegistroTextKyAc18RegistroContable" src="/Assets/images/date.png" class="date-pick" />

                    </FooterTemplate>--%>
                </asp:TemplateField>

                <asp:TemplateField HeaderText="Glosa" >
                    <ItemStyle />

                    <ItemTemplate>

                        <asp:TextBox ID="ctlGlosaKyAc18RegistroContable" 
                                     runat="server" 
                                     Text='<%# Bind("Glosa") %>' 
                                     Width="290px" 
                                     MaxLength="35"  Enabled="false"  />

                    </ItemTemplate>
<%--                    <FooterTemplate>

                        <asp:TextBox ID="ctlGlosaKyAc18RegistroContable" 
                                     runat="server" 
                                     Text='<%# Bind("Glosa") %>' 
                                     Width="175px" 
                                     MaxLength="35" />

                    </FooterTemplate>--%>
                </asp:TemplateField>

                <asp:TemplateField HeaderText="Monto" >
                    <ItemStyle />

                    <ItemTemplate>

                        <asp:TextBox ID="ctlMontoKyAc18RegistroContable" 
                                     runat="server" 
                                     Text='<%# Bind("Monto") %>' 
                                     Width="65px" 
                                     MaxLength="19" CssClass="txtRight"  Enabled="false"  />

                    </ItemTemplate>
<%--                    <FooterTemplate>

                        <asp:TextBox ID="ctlMontoKyAc18RegistroContable" 
                                     runat="server" 
                                     Text='<%# Bind("Monto") %>' 
                                     Width="45px" 
                                     MaxLength="19"  CssClass="txtRight"/>

                    </FooterTemplate>--%>
                </asp:TemplateField>

                <asp:TemplateField HeaderText="Tipo" >
                    <ItemStyle />

                    <ItemTemplate>

                        <asp:TextBox ID="ctlTipoKyAc18RegistroContable" 
                                     runat="server" 
                                     Text='<%# Bind("TipoText") %>' 
                                     Width="75px" 
                                     MaxLength="1"  Enabled="false"  />

                    </ItemTemplate>
<%--                    <FooterTemplate>

                        <asp:TextBox ID="ctlTipoKyAc18RegistroContable" 
                                     runat="server" 
                                     Text='<%# Bind("TipoText") %>' 
                                     Width="40px" 
                                     MaxLength="1" />

                    </FooterTemplate>--%>
                </asp:TemplateField>

                <asp:TemplateField HeaderText="NmrDcto" >
                    <ItemStyle />

                    <ItemTemplate>

                        <asp:TextBox ID="ctlNmrDctoKyAc18RegistroContable" 
                                     runat="server" 
                                     Text='<%# Bind("NmrDcto") %>' 
                                     Width="50px" 
                                     MaxLength="10"  Enabled="false"  />

                    </ItemTemplate>
<%--                    <FooterTemplate>

                        <asp:TextBox ID="ctlNmrDctoKyAc18RegistroContable" 
                                     runat="server" 
                                     Text='<%# Bind("NmrDcto") %>' 
                                     Width="50px" 
                                     MaxLength="10" />

                    </FooterTemplate>--%>
                </asp:TemplateField>

                <asp:TemplateField HeaderText="NmrAsiento" >
                    <ItemStyle />

                    <ItemTemplate>

                        <asp:TextBox ID="ctlNmrAsientoKyAc18RegistroContable" 
                                     runat="server" 
                                     Text='<%# Bind("NmrAsiento") %>' 
                                     Width="50px" 
                                     MaxLength="10"  Enabled="false"  />

                    </ItemTemplate>
<%--                    <FooterTemplate>

                        <asp:TextBox ID="ctlNmrAsientoKyAc18RegistroContable" 
                                     runat="server" 
                                     Text='<%# Bind("NmrAsiento") %>' 
                                     Width="50px" 
                                     MaxLength="10" />

                    </FooterTemplate>--%>
                </asp:TemplateField>

<%--                <asp:TemplateField HeaderText="EstaProcesado" >
                    <ItemStyle />

                    <ItemTemplate>

                        <asp:CheckBox ID="ctlEstaProcesadoKyAc18RegistroContable" runat="server" Checked='<%# Bind("EstaProcesado") %>' />

                    </ItemTemplate>
                    <FooterTemplate>

                        <asp:CheckBox ID="ctlEstaProcesadoKyAc18RegistroContable" runat="server" Checked='<%# Bind("EstaProcesado") %>' />

                    </FooterTemplate>
                </asp:TemplateField>--%>

<%--                <asp:TemplateField ShowHeader="False">
                    <ItemTemplate>
                        <asp:HiddenField ID="ctlIdKyAc18RegistroContable" 
                                         runat="server" 
                                         Value='<%# Bind("Id") %>' />
                        <asp:LinkButton ID="btnDel" runat="server" 
                                                    OnClientClick="return confirm('¿ Esta seguro que desea quitar el registro actual ?');" 
                                                    CommandName="Delete"
                                                    Text="Quitar" />
                    </ItemTemplate>
                    <FooterTemplate>
                        <asp:HiddenField ID="ctlIdKyAc18RegistroContable" 
                                         runat="server" 
                                         Value='<%# Bind("Id") %>' />
                        <asp:LinkButton ID="btnAdd" runat="server" 
                                                    Text="Agregar" 
                                                    CommandName="Add" 
                                                    ValidationGroup="add"  />
                    </FooterTemplate>
                </asp:TemplateField>--%>
            </Columns>
            <PagerStyle HorizontalAlign="Left"/>
        </asp:GridView>
        </div>
    </div>
</fieldset>
<div id="divAction">
	<%--<asp:LinkButton ID="btnGrabar" runat="server" OnClick="btnGrabar_Click" CssClass="btn btnsave" >Grabar</asp:LinkButton>--%>
</div>
</asp:Panel>
<div id="divMessage"><asp:Label ID="lblMessage" runat="server" /></div>

<asp:HiddenField runat="server" ID="ctlId" Value="" />

<asp:Panel runat="server" ID="pnlGrid" Visible="false" CssClass="csGrid" >
	<table id="tblGridView" style="display:none"></table>
</asp:Panel>

<!-- Add CartolaMayor -->
<script type="text/javascript" src="<%= VirtualPathUtility.ToAbsolute("~/Scripts/ucCartolaMayor.js") %>"></script>
<!-- End CartolaMayor -->

</div>
